home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 34.zip / BS1 part 34 / Aztec C 5.0a disk 1.adf / include / graphics / gfx.h < prev    next >
C/C++ Source or Header  |  1988-11-20  |  521b  |  35 lines

  1. #ifndef    GRAPHICS_GFX_H
  2. #define    GRAPHICS_GFX_H
  3. #ifndef EXEC_TYPES_H
  4. #include "exec/types.h"
  5. #endif
  6. #define    BITSET    0x8000
  7. #define    BITCLR    0
  8. #define    AGNUS
  9. #ifdef    AGNUS
  10. #define    TOBB(a)    ((long)(a))
  11. #else
  12. #define    TOBB(a)    ((long)(a)>>1)
  13. #endif
  14. struct    Rectangle
  15. {
  16. SHORT    MinX,MinY;
  17. SHORT    MaxX,MaxY;
  18. };
  19. typedef    struct    tPoint
  20. {
  21. WORD    x,y;
  22. }    Point;
  23. typedef    UBYTE    *PLANEPTR;
  24. struct    BitMap
  25. {
  26. UWORD    BytesPerRow;
  27. UWORD    Rows;
  28. UBYTE    Flags;
  29. UBYTE    Depth;
  30. UWORD    pad;
  31. PLANEPTR    Planes[8];
  32. };
  33. #define    RASSIZE(w,h)    ((h)*(    (w+15)>>3&0xFFFE))
  34. #endif
  35.